﻿<UserControl x:Class="B2B.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
             mc:Ignorable="d"
             d:DesignHeight="768" d:DesignWidth="1024" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation">

    <Grid x:Name="LayoutRoot" Style="{StaticResource LayoutRootStyle}">
        <Border x:Name="Background" Style="{StaticResource BorderBackgroundStyle}"/>
        <ScrollViewer>
            <Grid x:Name="Sheet" Style="{StaticResource SheetStyle}" Background="{StaticResource BrushSheetBackground}" Width="1000" VerticalAlignment="Top" HorizontalAlignment="Center">
                <Grid.RowDefinitions>
                    <RowDefinition Height="150"/>
                    <RowDefinition Height="25"/>
                    <RowDefinition Height="*" MinHeight="250"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>

                <!--Header-->
                <Border x:Name="HeaderBorder" Grid.Row="0" Style="{StaticResource HeaderBorderStyle}">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="120" />
                            <RowDefinition Height="28*" />
                        </Grid.RowDefinitions>

                        <Border x:Name="HeaderBackground" Style="{StaticResource HeaderBackgroundStyle}" Grid.RowSpan="2" Grid.ColumnSpan="2">
                            <sdk:DataGrid AutoGenerateColumns="True" Height="93" Name="dataGrid1" Width="255" />
                        </Border>

                        <TextBlock Text="B2B Uygulaması" Style="{StaticResource HeaderTextStyle}"/>
                        <TextBlock Text="Silverlight Uygulaması" 
    						Style="{StaticResource SubHeaderTextStyle}"/>

                        <telerikNavigation:RadMenu Height="Auto" HorizontalAlignment="Right" Width="Auto" Grid.Row="1" Grid.Column="1" Name="radMenu1">
                            <telerikNavigation:RadMenuItem Header="Ana Sayfa">
                            </telerikNavigation:RadMenuItem>
                            <telerikNavigation:RadMenuItem Header="Finans-C/H">
                                <HyperlinkButton NavigateUri="/CustomerDetails"
												TargetName="ContentFrame" Content="Cari Bilgilerim" />

                                <HyperlinkButton NavigateUri="/CustomerAnalysis"
												TargetName="ContentFrame" Content="Cari Analiz" />

                                <HyperlinkButton NavigateUri="/CustomerExtract"
												TargetName="ContentFrame" Content="Cari Ekstre" />

                                <HyperlinkButton NavigateUri="/Receipt"
												TargetName="ContentFrame" Content="C/H Ödeme yap" />

                            </telerikNavigation:RadMenuItem>
                            <telerikNavigation:RadMenuItem Header="Sipariş Analiz">
                                <telerikNavigation:RadMenuItem Header="Sipariş Analizi" />
                                <telerikNavigation:RadMenuItem Header="Favori Listem" />
                            </telerikNavigation:RadMenuItem>
                            <telerikNavigation:RadMenuItem Header="Alışveriş Listem">
                                <telerikNavigation:RadMenuItem Header="Kredi Kartı ile Öde" />
                                <telerikNavigation:RadMenuItem Header="Havale ile Öde" />
                                <telerikNavigation:RadMenuItem Header="Açık Hesap ile Öde" />
                                <telerikNavigation:RadMenuItem Header="C/H Ödeme yap" />
                            </telerikNavigation:RadMenuItem>
                        </telerikNavigation:RadMenu>

                    </Grid>
                </Border>

                <!--ToolBar-->
                <Border x:Name="ToolBarBorder" Grid.Row="1" Style="{StaticResource HeaderBorderStyle}">
                    <StackPanel x:Name="arama">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="120"/>
                                <ColumnDefinition Width="120"/>
                                <ColumnDefinition Width="120"/>
                                <ColumnDefinition Width="120"/>
                                <ColumnDefinition Width="120"/>
                                <ColumnDefinition Width="130"/>
                                <ColumnDefinition Width="40"/>
                                <ColumnDefinition Width="185"/>
                                <ColumnDefinition Width="20"/>
                                <ColumnDefinition Width="20"/>
                            </Grid.ColumnDefinitions>

                            <ComboBox x:Name="cmbUreticiler" Height="20" Grid.Column="0" HorizontalAlignment="Left" Width="120"/>
                            <ComboBox x:Name="cmbMarkalar" Height="20" Grid.Column="1" HorizontalAlignment="Left" Width="120" />
                            <ComboBox x:Name="cmbKategori" Height="20" Grid.Column="2" HorizontalAlignment="Left" Width="120" />
                            <ComboBox x:Name="cmbAnaGrup" Height="20" Grid.Column="3" HorizontalAlignment="Left" Width="120" />
                            <ComboBox x:Name="cmbAltGrup" Height="20" Grid.Column="4" HorizontalAlignment="Left" Width="120" />
                            
                            <TextBox x:Name="txtSearch" Width="130" Height="20" Grid.Column="5" Margin="0"></TextBox>
                            <Button x:Name="btnAra" Height="20" HorizontalAlignment="Left"  Grid.Column="6" Width="40" Content="ARA" ></Button>
                            <ComboBox x:Name="cmbListe" Height="20" Grid.Column="7" HorizontalAlignment="Right" Width="150"/>
                            <Button x:Name="btnCikar" Height="20" Grid.Column="8" HorizontalAlignment="Right" Width="20" Content="-" ></Button>
                            <Button x:Name="btnEkle" Height="20" Grid.Column="9" HorizontalAlignment="Right" Width="20" Content="+" ></Button>
                        </Grid>
                    </StackPanel>
                </Border>

                <!--Content-->
                <Grid Grid.Row="2">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="200" />
                        <ColumnDefinition Width="799" />
                    </Grid.ColumnDefinitions>


                    <Grid Grid.Column="0">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>

                        <sdk:TabControl Height="200" Grid.Row="0" Margin="5" Name="tabControl1" Width="190">
                            <sdk:TabItem Header="Alışveriş Listem" Name="tabItem1" VerticalAlignment="Center" Width="185" HorizontalAlignment="Center">
                                <Grid/>
                            </sdk:TabItem>
                        </sdk:TabControl>

                        <sdk:TreeView Grid.Row="1" Margin="5" Name="treeView1" Width="190">
                        </sdk:TreeView>
                    </Grid>

                    <navigation:Frame x:Name="ContentFrame" Grid.Column="1"  Style="{StaticResource ContentFrameStyle}"
                                  Navigated="ContentFrame_Navigated" 
                                  NavigationFailed="ContentFrame_NavigationFailed" Margin="0,5,5,0" Grid.ColumnSpan="2" />


                </Grid>

                <!--Footer-->
                <StackPanel Orientation="Horizontal" Grid.Row="3" HorizontalAlignment="Right" VerticalAlignment="Bottom"
    				Margin="0 0 5 5"/>

            </Grid>
        </ScrollViewer>
    </Grid>
</UserControl>